package cn.goktech.sports.modules.countryEmbargoGoods.dao;

import cn.goktech.sports.modules.countryEmbargoGoods.entity.CountryEmbargoGoodsEntity;
import cn.goktech.sports.modules.countryEmbargoGoods.entity.ImportEntity;
import cn.goktech.sports.modules.importDataone.entity.BaseProhibited;
import cn.goktech.sports.modules.sys.dao.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 模板一数据
 * @author ZhouChenglin<yczclcn@163.com>
 */
@Mapper
public interface CountryEmbargoGoodsMapper extends BaseMapper<CountryEmbargoGoodsEntity> {

	int isExist(String countryId, String goodsName);

	/**
	 *
	 * @param warehouse
	 * @param goodsName
	 * @return
	 */
	Integer isExistProhibited(@Param(value = "warehouse") String warehouse, @Param(value = "goodsName") String goodsName);

	void insert(@Param("list") List<ImportEntity> list);

	void delete(Long articleTypeId);

	/**
	 * 查询是否是当前地区的违禁物品
	 *
	 * @param params
	 * @return
	 */
	List<BaseProhibited> contraband(Map<String, Object> params);
}
